package com.ruoyi.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.order.domain.Orders;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrdersData {

    /** 订单ID */
    private Long orderId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 服务ID */
    @Excel(name = "服务ID")
    private String smId;

    /** 服务类型ID */
    @Excel(name = "服务类型ID")
    private Long stId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 车主姓名 */
    @Excel(name = "车主姓名")
    private String ownerName;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long mjId;

    /** 车辆ID */
    @Excel(name = "车辆ID")
    private Long viId;

    /** 优惠券ID */
    @Excel(name = "优惠券ID")
    private Long cvId;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal payPrice;

    private BigDecimal yuanjia;

    private String remark;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date appointTime;

    /** 核销码 */
    @Excel(name = "核销码")
    private String verifyCode;

    /** 核销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date verifyTime;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contact;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderStatus;

    /** 维修类型ID */
    @Excel(name = "维修类型ID")
    private Long rtId;

    /** 维修部位图片 */
    @Excel(name = "维修部位图片")
    private String repairPhotos;

    /** 取车位置 */
    @Excel(name = "取车位置")
    private String pickLocation;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Long isDeleted;
    // 服务类型
    private String serviceType;
    // 服务名
    private String serviceName;
    // 服务编号
    private String serviceCode;
    // 优惠
    private String discount;
}
